VPATH=src:../headers
BIN=01

'CFLAGS= -std=c99 -O2'
CFLAGS= -std=c99 -O0 -g
LDFLAGS= -lm -lcurses
OBJ=01.o

'all: main strip'
all: main

main: $(OBJ) 
	$(CC) $(CFLAGS) $? -o $(BIN) $(LDFLAGS) 

strip:
	strip $(BIN)
	strip $(BIN).exe

astyle:
	astyle --style=java -t src/*.c
	rm src/*.orig

clean:
	rm -f $(OBJ) $(BIN) $(BIN).exe
